package cn.stylefeng.guns.modular.statistic.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.statistic.entity.DayStatistic;
import cn.stylefeng.guns.modular.statistic.model.params.DayStatisticParam;
import cn.stylefeng.guns.modular.statistic.model.result.DayStatisticResult;
import cn.stylefeng.guns.modular.statistic.model.result.StatisticResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liuqiang
 * @since 2020-02-21
 */
public interface DayStatisticService extends IService<DayStatistic> {

    /**
     * 新增
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    void add(DayStatisticParam param);

    /**
     * 删除
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    void delete(DayStatisticParam param);

    /**
     * 更新
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    void update(DayStatisticParam param);


    /**
     * 查询单条数据，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    DayStatisticResult findBySpec(DayStatisticParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
    List<DayStatisticResult> findListBySpec(DayStatisticParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuqiang
     * @Date 2020-02-21
     */
     LayuiPageInfo findPageBySpec(DayStatisticParam param);


    List<StatisticResult> statisticsDay(DayStatisticParam param);

    DayStatisticResult findByDay(int day);
}
